package com.letoken.platform.repo.admin.req.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "新增网络节点配置地址请求对象", description = "新增网络节点配置地址请求对象")
public class AddChainNodeAddressReq {
    @NotNull(message = "网络编号不能为空！")
    @ApiModelProperty(value = "网络编号", example = "1")
    private Integer chainId;

    @ApiModelProperty(value = "节点名称", example = "Ninicoin123")
    private String nodeName;

    @ApiModelProperty(value = "节点网址", example = "https://google.cn")
    private String nodeUrl;

    @Min(value = 0)
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @Range(min = 0, max = 1)
    @ApiModelProperty(value = "启用状态(0禁用 1启用）", example = "1")
    private Integer status;


}
